/*
 * @Date: 2022-07-14 09:47:57
 * @LastEditTime: 2022-07-14 09:56:27
 */
import { request } from 'axios'
export function send (content, receiverUid) {
  return request({
    url: '/api/chat/insertChat',
    methods: 'post',
    params: {
      content,
      receiverUid
    }
  })
}

export function find (size, pageNum, receiverUid) {
  return request({
    url: '/api/chat/findByChat',
    methods: 'post',
    params: {
      page_num: pageNum,
      size,
      receiverUid
    }
  })
}
